import request from '@/utils/request'

export function getImageCode() {
  return request({
    url: '/vertify/verifyCode',
    method: 'get'
  })
}
export function login(data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data: data
  })
}
export function register(data) {
  return request({
    url: '/user/register',
    method: 'post',
    data: data
  })
}
export function userMapCount() {
  return request({
    url: '/user/count',
    method: 'get'
  })
}
export function getPerms(username) {
  return request({
    url: '/user/perms/'+username,
    method: 'get',
  })


}
